home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / d / devioustools21.dms / devioustools21.adf / utils / 001.lzx / ArtPRO / Install < prev    next >
Text File  |  2018-05-21  |  3KB  |  154 lines

  1. ; ArtPRO installations Script
  2. ; © 1996 DEFECT SOFTWORKS All rights reserved.
  3. ; May only be distributed within the ArtPRO package
  4. ; Written by Crazy Copper /DFT
  5. ; Date: 15/Jan/96
  6.  
  7. (set flasekickmsg    "You need at least OS 2.04 to run ArtPRO!")
  8.  
  9. (set OS_VER (/ (getversion) 65536) )
  10.  
  11. (if(< OS_VER 37)
  12.   (abort falsekickmsg)
  13. )
  14.  
  15. (Set #WhatInstall
  16. (cat  "Which parts of the ArtPRO Package do you want to install now ?"
  17. ))
  18.  
  19. (set #InstallParts
  20.         (askoptions
  21.             (prompt #WhatInstall)
  22.             (help @askoptions-help)
  23.             (choices
  24.                 ("ArtPRO Main Program")        ;Bit 0
  25.                 ("External Loaders")        ;Bit 1
  26.                 ("External Savers")        ;Bit 2
  27.                 ("Second IconSet")        ;Bit 3
  28.                 ("needed Libraries")        ;Bit 4
  29.                 ("Documentations")        ;Bit 5
  30.                 ("External AppIcon")        ;Bit 6
  31.             )
  32.                         (default 127)
  33.         )
  34. )
  35.  
  36. (set progdir1
  37.  (askdir (prompt "In wich drawer should ArtPRO be installed?\n (a drawer will be created)")
  38.    (help @askdir-help)
  39.    (DEFAULT @default-dest)))
  40.  
  41.  
  42. (    (makedir (tackon progdir1 "ArtPRO")) 
  43.     (copyfiles (source "Icons/ArtPRO.info")
  44.     (dest progdir1))
  45.  
  46.     (set progdir (tackon progdir1 "ArtPRO"))
  47. )
  48. ;--------------------------------------------------------------------------
  49. (if (IN #InstallParts 0)
  50.  (
  51.     (copyfiles (source "ArtPRO")
  52.     (dest progdir))
  53.  
  54.     (copyfiles (source "ArtPRO.info")
  55.     (dest progdir))
  56.  )
  57. )
  58.  
  59. (if (IN #InstallParts 1)
  60.  
  61.  (
  62.     (makedir (tackon progdir "ALoaders"))
  63.     (copyfiles (source "Aloaders")
  64.     (dest (tackon progdir "ALoaders"))
  65.     (all))
  66.  )
  67. )
  68.  
  69. (if (IN #InstallParts 2)
  70.  
  71.  (
  72.     (makedir (tackon progdir "ASavers"))
  73.     (copyfiles (source "ASavers")
  74.     (dest (tackon progdir "ASavers"))
  75.     (all))
  76.  )
  77. )
  78.  
  79. (if (IN #InstallParts 4)
  80.  
  81.  (
  82.     (copylib
  83.         (prompt "Copy ReqTools.library")
  84.         (help @copylib-help)
  85.         (source "libs/reqTools.library")
  86.         (dest "Libs:")
  87.         (confirm)
  88.         (optional "nofail"))
  89.  )
  90. )
  91.  
  92. (if (IN #InstallParts 5)
  93.  
  94.  (
  95.     (set docdir
  96.         (askdir (prompt "Select a drawer for the Guide:")
  97.         (help @askdir-help)
  98.         (DEFAULT progdir)))
  99.  
  100.     (copyfiles (source "ArtPRO.guide")
  101.         (dest docdir))
  102.  
  103.     (copyfiles (source "ArtPRO.guide.info")
  104.         (dest docdir))
  105.  )
  106. )
  107.  
  108. (if (IN #InstallParts 3)
  109.  
  110.  (
  111.     (makedir (tackon progdir "Icons"))
  112.     (copyfiles (source "Icons")
  113.         (dest (tackon progdir "Icons"))
  114.         (all))
  115.     (copyfiles (source "Icons.info")
  116.         (dest progdir))
  117.  )
  118. )
  119.  
  120. (if (IN #InstallParts 6)
  121.  
  122.  (
  123.   (set appdir
  124.   (askdir (prompt "In wich drawer should the external AppIcon be installed?")
  125.    (help @askdir-help)
  126.    (DEFAULT progdir)))
  127.  
  128.      (copyfiles (source "Icons/AppIcon.info")
  129.         (dest appdir)
  130.     )
  131.     (Tooltype (dest (tackon progdir "ArtPRO"))
  132.         (Settooltype "APPICON" (tackon appdir "AppIcon"))
  133.     )
  134.  
  135.  )
  136. )
  137.  
  138. (set @default-dest progdir)
  139.  
  140. (copyfiles (source "Orderform.doc")
  141.     (dest progdir)
  142. )
  143. (copyfiles (source "Orderform.dok")
  144.     (dest progdir)
  145. )
  146. (makedir "ENV:ArtPRO")
  147. (makedir "ENVARC:ArtPRO")
  148.  
  149. (exit "Note: ArtPRO is Shareware!\n\n"
  150.       "Enjoy this!")
  151.  
  152.  
  153.